package com.mango.Tools;

import java.util.Set;
import java.util.TreeSet;

public class StringUtils {
	public static Set<Integer> strToSet(String str) {
		Set<Integer> result = new TreeSet<>();
		String[] vals = str.trim().split(",");
		if (vals == null || vals.equals("") || vals.length == 0)
			return null;
		for (String s : vals) {
			System.out.println("当前转化的字符是"+s);
			result.add(Integer.valueOf(s.trim()));
		}
		return result;
	}
}
